#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"
void Test1(SeqList* plist)
{
	SeqListInit(plist);

	SeqListPushBack(plist, 1);
	SeqListPushBack(plist, 2);
	SeqListPushBack(plist, 3);
	SeqListPushBack(plist, 4);
	SeqListPushBack(plist, 5);

	SeqListPrint(plist);

	SeqListPushFront(plist, 0);
	SeqListPushFront(plist, -1);
	SeqListPushFront(plist, -2);
	SeqListPushFront(plist, -3);

	SeqListPrint(plist);

	SeqListDestroy(plist);


}

void Test2(SeqList* plist)
{
	SeqListInit(plist);

	SeqListPushBack(plist, 1);
	SeqListPushBack(plist, 2);
	SeqListPushBack(plist, 3);
	SeqListPushBack(plist, 4);
	SeqListPushBack(plist, 5);


	SeqListPushFront(plist, 0);
	SeqListPushFront(plist, -1);
	SeqListPushFront(plist, -2);
	SeqListPushFront(plist, -3);
	SeqListPrint(plist);

	SeqListInsert(plist, 99, 5);
	SeqListPrint(plist);

	SeqListErase(plist, 5);
	SeqListPrint(plist);
	SeqListErase(plist, 3);
	SeqListPrint(plist);
	SeqListErase(plist, 3);
	SeqListPrint(plist);
	int k = SeqListFind(plist, 99);
	printf("**%d**", k);
	SeqListDestroy(plist);


}

int main()
{
	SeqList list = { 0 };
	Test2(&list);
	return 0;
}